import request from '@/utils/request'

export function batchSave(data) {
  console.log("权限参数         ：" + data)
  return request({
    url: '/api/permission/batchSave',
    method: 'post',
    data
  })
}

export function getPermission(data) {
  return request({
    url: '/api/permission/getPermissions',
    method: 'post',
    data
  })
}

export function checkPremission(params) {
  return request({
    url: '/api/permission/check',
    method: 'get',
    params
  })
}

